package com.example.springbootNetty;

import com.example.springbootNetty.netty.server.NettyServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @Author: Kevin
 * @Date: 2022/1/25 17:19
 */
@Component
public class InitServer implements CommandLineRunner {
    @Autowired
    private NettyServer nettyServer;

    @Override
    public void run(String... args) throws Exception {
        nettyServer.run(9999);
    }
}
